package com.example.user.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class User {
    @GetMapping("user")
    public String index(HttpServletRequest request){
        return "user: " + request.getServerPort();
    }
}
